package org.lixf.tomcat;

import jakarta.servlet.*;
import jakarta.servlet.http.HttpServletRequest;

import java.io.IOException;

public class HelloFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("aaaaa");
        HttpServletRequest req = (HttpServletRequest) servletRequest;
        System.out.println(req.getRequestURI());

        filterChain.doFilter(servletRequest, servletResponse);
    }


}